package com.aidex.biz.controller;

import com.aidex.biz.domain.BizCockpit;
import com.aidex.biz.service.BizCockpitService;
import com.aidex.common.core.controller.BaseController;
import com.aidex.common.core.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author xy.cai
 * @since 2024-11-12
 */
@RestController
@RequestMapping("/biz/bizCockpit")
public class BizCockpitController extends BaseController {
    @Autowired
    private BizCockpitService bizCockpitService;

    /**
     * 查询驾驶舱信息列表
     */
    @GetMapping("/findList")
    public R findList(BizCockpit bizCockpit, HttpServletRequest request, HttpServletResponse response) {
        List<BizCockpit> list = bizCockpitService.findList(bizCockpit);
        return R.data(list);
    }
}
